<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台</title>
<link rel="stylesheet" type="text/css" href="css/css.css"/>
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<script src="js/jQuery.js" type="text/javascript"></script>
<script src="kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
<script>
	function tocomtRef(){
		$("#username").attr("src","comment/comList.php");
	}
</script>
</head>
<?php
     session_start();
	 if(!isset($_SESSION['username'])){
		header("location:login.php");
		exit;
	}
?>

<body>
<div class="top"><!--top start-->
	<div class="topLeft"><!--topRight start-->
    　<span>欢迎您[<?php echo $_SESSION['username']; ?>]超级管理员！</span>
    </div><!--topLeft end-->
    <div class="topRight"><!--topRight start-->
    <a href="">[添加文章]</a>　|　<a href="">[添加商品]</a>　|　<a href="">[系统首页]</a>　|　<a href="">[网站首页]</a>　|　<a href="logout.php">[安全退出]</a>　
    </div><!--topRight end-->
</div><!--top end-->
<div class="clear"></div>
<div class="content"><!--content start-->
	<div class="conLeft"><!--conLeft start-->
    	<div class="topTitle"><span>用户管理</span></div><!--topTitle end-->
        <div class="sonTitle"><span><a href="?targetPhp=user/addUser.php">添加管理员</a></span></div>
        <div class="sonTitle"><span><a href="?targetPhp=user/userList.php">管理员列表</a></span></div>
        
        <div class="topTitle"><span>企业站核心管理</span></div><!--topTitle end-->
        <div class="sonTitle"><span><a href="#">网站栏目管理</a></span></div>
        <div class="sonTitle"><span><a href="#">文档管理</a></span></div>
        <div class="sonTitle"><span><a href="?targetPhp=comment/comList.php">评论管理</a></span></div>
        <div class="sonTitle"><span><a href="?targetPhp=recycle/allList.php">回收站管理</a></span></div>
        
        <div class="topTitle"><span>企业站核心管理</span></div><!--topTitle end-->
        <div class="sonTitle"><span><a href="#">网站栏目管理</a></span></div>
        <div class="sonTitle"><span><a href="#">文档管理</a></span></div>
        <div class="sonTitle"><span><a id="comtRef" href="javascript:tocomtRef();">评论管理</a></span></div>
        <div class="sonTitle"><span><a href="#">回收站管理</a></span></div>
        
        <div class="topTitle"><span>企业站核心管理</span></div><!--topTitle end-->
        <div class="sonTitle"><span><a href="#">网站栏目管理</a></span></div>
        <div class="sonTitle"><span><a href="#">文档管理</a></span></div>
        <div class="sonTitle"><span><a href="#">评论管理</a></span></div>
        <div class="sonTitle"><span><a href="#">回收站管理</a></span></div>

        <div class="topTitle"><span>企业站核心管理</span></div><!--topTitle end-->
        <div class="sonTitle"><span><a href="#">网站栏目管理</a></span></div>
        <div class="sonTitle"><span><a href="#">文档管理</a></span></div>
        <div class="sonTitle"><span><a href="#">评论管理</a></span></div>
        <div class="sonTitle"><span><a href="#">回收站管理</a></span></div>
        
    </div><!--conLeft end-->
    <div class="conRight"><!--conRight start-->
    	<?php 
    	    if(isset($_GET['targetPhp'])){
    	    	$tarphp=$_GET['targetPhp'];
				//echo $tarphp;
				include($tarphp);
    	    }else{
    	    	$str="欢迎登陆！";
				if(isset($_GET['showMsg']))
				    $str=$_GET['showMsg'];
    	    	echo "<div class='rightTop'><span>".$str."</span></div>";
    	    }
    	?>
    	<iframe id="username" frameborder="0" src=""   style="width:800;height:100%;"></iframe> 
    </div><!--conRight end-->
</div><!--content end-->
</body>
</html>
